package scanner.com.entity;

/**
 * Created by Administrator on 2016/6/14.
 */
public class RecordEntity {
    public enum RECORD_TYPE {CONTACT,URL,TEXT};
    public enum RECORD_FROM {MAKE,SCAN}

    public RecordEntity(RECORD_TYPE recordType, Object recordContent, RECORD_FROM recordFrome, long recordTime) {
        this.recordType = recordType;
        this.recordContent = recordContent;
        this.recordFrome = recordFrome;
        this.recordTime = recordTime;
    }

    public RecordEntity(RECORD_TYPE recordType, Object recordContent, RECORD_FROM recordFrome) {
        this.recordType = recordType;
        this.recordContent = recordContent;
        this.recordFrome = recordFrome;
        this.recordTime = System.currentTimeMillis();
    }

    private RECORD_TYPE recordType;
    private Object recordContent;
    private RECORD_FROM recordFrome;
    private long recordTime;

    public RECORD_TYPE getRecordType() {
        return recordType;
    }

    public void setRecordType(RECORD_TYPE recordType) {
        this.recordType = recordType;
    }

    public Object getRecordContent() {
        return recordContent;
    }

    public void setRecordContent(Object recordContent) {
        this.recordContent = recordContent;
    }

    public RECORD_FROM getRecordFrome() {
        return recordFrome;
    }

    public void setRecordFrome(RECORD_FROM recordFrome) {
        this.recordFrome = recordFrome;
    }

    public long getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(long recordTime) {
        this.recordTime = recordTime;
    }
}
